-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] Fix/36574: Add condition to check required merchant #36810
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving since I believe this works, I'd asked in the thread here https://expensify.slack.com/archives/C01GTK53T8Q/p1708371724314969?thread_ts=1708366311.490479&cid=C01GTK53T8Q just to double check that using ReportUtils.isPolicyExpenseChat
is okay here which I assume it is.
if we cause a regression we can always revert it and go back to what you had initially.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Without looking too deep into this, I assume the reason might be that the |
yeah I'm reconsidering my comment now... but maybe we should instead invert how you had it? so instead check so if we have a report and it's a group policy we'll return true and not have to loop over participants. but if as Vit said we don't have a report workspace chat and have to look at the participants it's our fallback? |
b78ad22
to
2638982
Compare
trying to test this out locally, having some issues i'm trying to work through with my VM. |
confirmed it works to prevent an empty merchant though I am also getting these errors the first time i click to try to save a new merchant but the 2nd time I click 2024-02-19_13-34-06.mp4 |
testing on |
okay this also happens on |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
requesting a CP to staging for this https://expensify.slack.com/archives/C07J32337/p1708375686663529 |
Fix/36574: Add condition to check required merchant (cherry picked from commit 6f1d8fa)
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.4.42-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.42-5 🚀
|
Details
Fixed Issues
$ #36574
PROPOSAL: NA
Tests
Offline tests
Same above
QA Steps
Same above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Tested on the web, will test on all platform asap
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
re.mp4
MacOS: Desktop